<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Section extends Model
{
    public function getTopic()
    {
        return $this->hasMany('App\Models\TopicBbs', 'section_id', 'id');
    }

    public function getUser(){
        return $this->belongsToMany('App\Models\User', 'user_id', 'id');
    }
}
